package org.linlinjava.litemall.db.service;

import java.util.List;

import javax.annotation.Resource;

import org.linlinjava.litemall.db.dao.TodaySellMapper;
import org.linlinjava.litemall.db.domain.TodaySell;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;

@Service
public class TodaySellService {
	@Resource
    private TodaySellMapper todaySellMapper;
	
	public void insert(TodaySell todaySell) {
		todaySellMapper.insert(todaySell);
	}
	
	public List<TodaySell> queryTodaySell(Integer page,Integer limit){
		PageHelper.startPage(page, limit);
		return todaySellMapper.queryTodaySell();
	}
	
	public void updateTodaySell(TodaySell todaySell) {
		todaySellMapper.updateTodaySell(todaySell);
	}
	
	public TodaySell findById(Integer id) {
		return todaySellMapper.findById(id);
	}
	
	public Long queryCount(){
		return todaySellMapper.queryCount();
	}
	
}
